<!DOCTYPE html>
    <html lang="en">

    <head>
        <meta charset="utf-8" />
        <title>域名检测api - {$web_title}</title>
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta content="域名检测,域名检测api,网站防洪检测" name="description" />
        <meta content="艾客防洪检测，为用户提供免费域名检测服务。及付费的域名检测api接口" name="author" />
        <link rel="shortcut icon" href="/public/assets/images/favicon.ico">
        <link href="/public/assets/css/vendor/jquery-jvectormap-1.2.2.css" rel="stylesheet" type="text/css" />
        <link href="/public/assets/css/icons.min.css" rel="stylesheet" type="text/css" />
        <link href="/public/assets/css/app.min.css" rel="stylesheet" type="text/css" />
         <link href="/public/assets/api/style.css" rel="stylesheet" type="text/css" />
  <link rel="stylesheet" href="/public/assets/api/mdui.min.css" />
    <link rel="stylesheet" href="/public/assets/api/mdclub.css" />
    <style>
    .icon-feedback {
      background: url("/public/assets/images/fankui.png") no-repeat;
      background-size:20px 30px;
      background-position: center;
    }
     .iconfont-dingdantongji {
      background: url("/public/assets/images/iconfont-dingdantongji.png") no-repeat;
      background-size:20px 30px;
      background-position: center;
     }
    </style>
  
    </head>

    <body>

        <!-- Begin page -->
        <div class="wrapper">

            <!-- ========== Left Sidebar Start ========== -->
          {include file="public/left" /}
            <!-- Left Sidebar End -->

            <!-- ============================================================== -->
            <!-- Start Page Content here -->
            <!-- ============================================================== -->

            <div class="content-page">
                <div class="content">

                    <!-- Topbar Start -->
             {include file="public/top" /}
<div class="mdui-container mdui-p-x-2" id="main">

    <!-- 展示所有接口 -->
    <div id="app">
        <div class="mdui-row">
        {volist name='apiData' id='vo' }
        <div><div class="mdui-col-sm-6 mdui-col-md-4"><div class="mdui-card mdui-hoverable mdui-m-y-2"><div class="mdui-card-primary"><div class="mdui-card-primary-title">
                                {$vo.title}
                               {if condition="$vo.status eq 1"} <div class="mdui-badge mdui-color-green-400 mdui-text-color-white"> 正常{else /} <div class="mdui-badge mdui-color-red-700 mdui-text-color-white">维护{/if}</div> <button mdui-dialog="{target:'.feedback_dialog'}" mdui-tooltip="{content: '反馈'}" class="mdui-btn mdui-btn-icon mdui-float-right icon-feedback"><i class="icon-feedback"></i></button></div> <div class="mdui-card-primary-subtitle" style="font-size: 12px;"><i class="iconfont-dingdantongji"></i>累计调用：{$vo.click}次</div></div> <div class="mdui-card-content">{$vo.description}</div> <div class="mdui-card-actions"> {if condition="$vo.status eq 1"}<a target="_blank" href="/index/api/action?id={$vo.id}" class="mdui-btn mdui-ripple mdui-text-color-theme-accent mdui-float-right">{else /}<a class="mdui-btn mdui-ripple mdui-text-color-theme-accent mdui-float-right">{/if} More</a></div></div></div></div>
        {/volist}
 <!----></div> <div class="mc-user-edit mdui-dialog feedback_dialog"><div class="mdui-dialog-title mdui-p-y-2"><button mdui-dialog-close="" class="mdui-btn mdui-btn-icon"><i class="mdui-icon material-icons">close</i></button> 正在反馈
            </div> <div class="mdui-dialog-content mdui-p-x-3 mdui-p-b-2"><div class="mdui-textfield mdui-textfield-has-bottom"><label class="mdui-textfield-label">反馈标题</label> <input type="text" required="required" class="mdui-textfield-input"> <div class="mdui-textfield-error">反馈标题不能为空</div></div> <div class="mdui-textfield"><label class="mdui-textfield-label">反馈内容</label> <textarea rows="12" class="mdui-textfield-input"></textarea></div> <div class="mdui-textfield mdui-textfield-has-bottom"><label class="mdui-textfield-label">联系邮箱</label> <input type="email" required="required" class="mdui-textfield-input"> <div class="mdui-textfield-error">联系邮箱格式不正确</div></div> <br> <button id="submitFeedback" mdui-dialog-close="" class="mdui-btn mdui-color-theme-accent mdui-btn-raised mdui-m-b-2">反馈</button></div></div></div>

    <!-- 搜索接口Dialog -->
 

    <!-- 浮动搜索按钮 -->
 
    <!-- End 浮动搜索按钮 -->
</div>
             {include file="public/foot" /}
                <!-- end Footer -->

            </div>

            <!-- ============================================================== -->
            <!-- End Page content -->
            <!-- ============================================================== -->


        </div>
        <!-- END wrapper -->

        <!-- Right Sidebar -->
        <div class="right-bar">

            <div class="rightbar-title">
                <a href="javascript:void(0);" class="right-bar-toggle float-right">
                    <i class="dripicons-cross noti-icon"></i>
                </a>
                <h5 class="m-0">Settings</h5>
            </div>

            <div class="slimscroll-menu rightbar-content">

                <!-- Settings -->
                <hr class="mt-0" />
                <h5 class="pl-3">Basic Settings</h5>
                <hr class="mb-0" />

                <div class="p-3">
                    <div class="custom-control custom-checkbox mb-2">
                        <input type="checkbox" class="custom-control-input" id="notifications-check" checked>
                        <label class="custom-control-label" for="notifications-check">Notifications</label>
                    </div>

                    <div class="custom-control custom-checkbox mb-2">
                        <input type="checkbox" class="custom-control-input" id="api-access-check">
                        <label class="custom-control-label" for="api-access-check">API Access</label>
                    </div>

                    <div class="custom-control custom-checkbox mb-2">
                        <input type="checkbox" class="custom-control-input" id="auto-updates-check" checked>
                        <label class="custom-control-label" for="auto-updates-check">Auto Updates</label>
                    </div>

                    <div class="custom-control custom-checkbox mb-2">
                        <input type="checkbox" class="custom-control-input" id="online-status-check" checked>
                        <label class="custom-control-label" for="online-status-check">Online Status</label>
                    </div>

                    <div class="custom-control custom-checkbox mb-2">
                        <input type="checkbox" class="custom-control-input" id="auto-payout-check">
                        <label class="custom-control-label" for="auto-payout-check">Auto Payout</label>
                    </div>

                </div>


                <!-- Timeline -->
                <hr class="mt-0" />
                <h5 class="pl-3">Recent Activity</h5>
                <hr class="mb-0" />
                <div class="pl-2 pr-2">
                    <div class="timeline-alt">
                        <div class="timeline-item">
                            <i class="mdi mdi-upload bg-info-lighten text-info timeline-icon"></i>
                            <div class="timeline-item-info">
                                <a href="#" class="text-info font-weight-bold mb-1 d-block">You sold an item</a>
                                <small>Paul Burgess just purchased “Hyper - Admin Dashboard”!</small>
                                <p class="mb-0 pb-2">
                                    <small class="text-muted">5 minutes ago</small>
                                </p>
                            </div>
                        </div>

                        <div class="timeline-item">
                            <i class="mdi mdi-airplane bg-primary-lighten text-primary timeline-icon"></i>
                            <div class="timeline-item-info">
                                <a href="#" class="text-primary font-weight-bold mb-1 d-block">Product on the Bootstrap Market</a>
                                <small>Dave Gamache added
                                    <span class="font-weight-bold">Admin Dashboard</span>
                                </small>
                                <p class="mb-0 pb-2">
                                    <small class="text-muted">30 minutes ago</small>
                                </p>
                            </div>
                        </div>

                        <div class="timeline-item">
                            <i class="mdi mdi-microphone bg-info-lighten text-info timeline-icon"></i>
                            <div class="timeline-item-info">
                                <a href="#" class="text-info font-weight-bold mb-1 d-block">Robert Delaney</a>
                                <small>Send you message
                                    <span class="font-weight-bold">"Are you there?"</span>
                                </small>
                                <p class="mb-0 pb-2">
                                    <small class="text-muted">2 hours ago</small>
                                </p>
                            </div>
                        </div>

                        <div class="timeline-item">
                            <i class="mdi mdi-upload bg-primary-lighten text-primary timeline-icon"></i>
                            <div class="timeline-item-info">
                                <a href="#" class="text-primary font-weight-bold mb-1 d-block">Audrey Tobey</a>
                                <small>Uploaded a photo
                                    <span class="font-weight-bold">"Error.jpg"</span>
                                </small>
                                <p class="mb-0 pb-2">
                                    <small class="text-muted">14 hours ago</small>
                                </p>
                            </div>
                        </div>

                        <div class="timeline-item">
                            <i class="mdi mdi-upload bg-info-lighten text-info timeline-icon"></i>
                            <div class="timeline-item-info">
                                <a href="#" class="text-info font-weight-bold mb-1 d-block">You sold an item</a>
                                <small>Paul Burgess just purchased “Hyper - Admin Dashboard”!</small>
                                <p class="mb-0 pb-2">
                                    <small class="text-muted">1 day ago</small>
                                </p>
                            </div>
                        </div>

                    </div>
                </div>
            </div>
        </div>


        <div class="rightbar-overlay"></div>
        <script src="/public/assets/js/app.min.js"></script>

        <!-- third party js -->
        <script src="/public/assets/api/Chart.bundle.min.js"></script>
        <script src="/public/assets/js/vendor/jquery-jvectormap-1.2.2.min.js"></script>
        <script src="/public/assets/js/vendor/jquery-jvectormap-world-mill-en.js"></script>
        <!-- third party js ends -->

        <!-- demo app -->
        <script src="/public/assets/js/pages/demo.dashboard.js"></script>
        <!-- end demo js-->
        
        <script src="./assets/js/jquery.min.js"></script>
<script src="/public/assets/api/jquery.cookie.min.js"></script>
<script src="/public/assets/api/sweetalert.min.js"></script>
<script src="/public/assets/api/mdui.min.js"></script>
<script src="/public/assets/api/index.js"></script>
<script src="/public/assets/api/vue.js"></script>
<script>
    let app = new Vue({
        el: '#app',
        data: {
            apis: [],
            feedback: [
                'id',
                'name',
                'title',
                'content',
                'email'
            ],
        },
        methods: {
            feedbackSend: function () {
                fetch('./Data/post.php', {
                    method: 'POST',
                    headers: {
                        'Content-Type': 'application/x-www-form-urlencoded'
                    },
                    body: 'type=add_feedback&api_id=' + this.feedback.id + '&api_name=' + encodeURIComponent(this.feedback.name) + '&title=' + encodeURIComponent(this.feedback.title) + '&content=' + encodeURIComponent(this.feedback.content) + '&email=' + encodeURIComponent(this.feedback.email)
                })
                    .then(response => response.json())
                    .then(json => {
                        mdui.snackbar(json.msg);
                    })
            },
            getApiInfo: function (id) {
                $('#submitFeedback').attr('disabled', true);
                fetch('./Data/api.php?type=getOneApi&id=' + id)
                    .then(response => response.json())
                    .then(json => {
                        this.feedback.id = json.data.id;
                        this.feedback.name = json.data.name;
                        $('#submitFeedback').attr('disabled', false);
                    })
            },

        },
        created() {
            fetch('./Data/api.php?type=getAllApi')
                .then(response => response.json())
                .then(json => {
                    this.apis = json.data;
                })
            fetch('./Data/api.php?type=getWebSetting')
                .then(response => response.json())
                .then(json => {
                    if (json.data.post && json.data.post_id != -1 && !$.cookie('post')) {
                        $.cookie('post', true, {
                            expires: 1
                        });
                        swal(json.data.post.title, json.data.post.content, {
                            icon: json.data.post.icon,
                            buttons: false
                        });
                    }
                })
        }
    });

    let search = new Vue({
        el: '#search',
        data: {
            apis: [],
            recommonds: [],
            searchContent: '',
            searchResult: true,
            msg: false
        },
        methods: {
        },
        watch: {
            searchContent: function (val) {
                if (val) {
                    fetch('./Data/api.php?type=searchApi&s=' + val)
                        .then(response => response.json())
                        .then(json => {
                            if (json.code == 0) {
                                this.searchResult = true;
                                this.apis = json.data;
                            } else {
                                this.searchResult = false;
                                this.msg = json.msg;
                            }
                        });
                } else {
                    this.searchResult = true;
                    this.apis = [];
                }
            }
        }
    });
    function focusInput() {
        setTimeout(function () {
            document.getElementById('searchbox').focus();
        }, 100);
    }
</script>
        
        
    </body>

</html>